package com.jctrip.hotel.management.model.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("飞猪酒店匹配接口-返回体")
public class GetFliggyHotelResult implements Serializable {
    @ApiModelProperty("共多少页")
    private Long pages;

    @ApiModelProperty("共多少量")
    private Long total;

    @ApiModelProperty("当前页")
    private Long current;

    @ApiModelProperty("当前页面大小")
    private Long size;

    @ApiModelProperty("酒店列表")
    private List<HotelInfo> records;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @ApiModel("酒店对象")
    public static class HotelInfo{
        @ApiModelProperty("主键")
        private String id;

        @ApiModelProperty("Hid")
        private Long hid;

        @ApiModelProperty("Shid")
        private Long shid;

        @ApiModelProperty("酒店编号")
        private String innId;

        @ApiModelProperty("供应名称")
        private String innName;

        @ApiModelProperty("飞猪在售名称")
        private String stdName;

        @ApiModelProperty("电话")
        private String innPhone;

        @ApiModelProperty("status(0:开启, -2:关闭)")
        private Integer status;

        @ApiModelProperty("匹配结果")
        private String dataConfirm;

        @ApiModelProperty("加价率")
        private BigDecimal markup;

        @ApiModelProperty("固定加价金额")
        private BigDecimal fixedMarkup;

        @ApiModelProperty("房型列表")
        private List<RoomInfo> rooms;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @ApiModel("房型对象")
    public static class RoomInfo{
        @ApiModelProperty("主键id")
        private String id;

        @ApiModelProperty("rid")
        private Long rid;

        @ApiModelProperty("匹配房型名")
        private String innRoomName;

        @ApiModelProperty("srid")
        private Long srid;

        @ApiModelProperty("标准房型名")
        private String stdRoomName;
    }
}
